import request from '@/utils/request'

const baseUrl = '/wallpaper'
/**
 * 获取公告列表
 */
export function listNotice(data = {}) {
    return request({
        url: baseUrl + '/wallNewsList',
        method: 'get',
        data,
    })
}

/**
 * 获取公告详情
 */
export function getNotice(id) {
    return request({
        url: baseUrl + `/wallNewsDetail/${id}`,
        method: 'get',
    })
}
